package com.usefullc.crawler.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.common.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: Sampson
 * @date: 2/18/23 11:36 PM
 */
@Data
public class CrawlerTaskVo extends BaseDomain {

    private Integer storePageSource;
    private Integer enableImage;
    private Integer enableJavascript;
    private Integer enableStyle;
    private Integer enableProxy;
    private String timeRdMs;
    private Long activeInstanceId;
    private Long activeId;
    private Long activeProcessId;
    private String cookie;

    private Long startTime;

    @ApiModelProperty(notes = "解析屏蔽表达式")
    private String analyseBanExpress;

    @ApiModelProperty(notes = "解析表达式")
    private String analyseExpress;

    @ApiModelProperty(notes = "解析提取URL表达式")
    private String analyseDataExpress;


    @ApiModelProperty(notes = "解析切换代理表达式")
    private String switchProxyExpress;


    @ApiModelProperty(notes = "请求url")
    private String url;

    @ApiModelProperty(notes = "提取数据的url")
    private String extractDataUrl;

    @ApiModelProperty(notes = "分片活动（0否，1是）")
    private Integer sliceActive;

    @ApiModelProperty(notes = "等待css选择表达式")
    private String waitCssSelectorExpress;

    @ApiModelProperty(notes = "脏数据css选择表达式")
    private String dirtyCssSelectorExpress;

    @ApiModelProperty(notes = "UI事件脚本")
    private String uiEventScript;

    @ApiModelProperty(notes = "Html提取表达式类型（0 静态；1 动态）")
    private Integer analyseExpressType;

    @ApiModelProperty(notes = "变量")
    private String variables;


    @ApiModelProperty(notes = "运行超时时间")
    private Integer runTimeout;

}
